package com.college.heyuhua.service.impl;

import com.college.heyuhua.dao.LostMapper;
import com.college.heyuhua.model.LostInfo;
import com.college.heyuhua.service.ILostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by 赵东坡 on 2019/2/5.
 * Time:17:14
 * 宇宙无敌赵牛逼，祈求永无bug
 */
@Service
public class LostServiceImpl implements ILostService{

    @Autowired
    private LostMapper mapper;


    @Override
    public List<LostInfo> lostList() {
        return mapper.lostList();
    }

    @Override
    public LostInfo getLostById(int lid) {
        return mapper.getLostById(lid);
    }

    @Override
    public boolean insertLostInfo(LostInfo lostInfo) {
        return mapper.insertLostInfo(lostInfo)==true?true:false;
    }

    @Override
    public boolean delete(String lid) {
        return mapper.delete(lid);
    }
}
